home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / 0utils.lha / 0Utils / VolName.doc < prev    next >
Text File  |  1995-09-05  |  1KB  |  77 lines

  1.  
  2.  
  3.  
  4.     NAME
  5.     VolName
  6.  
  7.     SYNOPSIS
  8.     VolName -  get the Volumename of a file  - Requires v37
  9.  
  10.     INPUTS
  11.     "FILE/A,VOLUME/S,DEVICE/S"
  12.  
  13.     DESCRIPTION
  14.  
  15.     VolName gets a filename and evaluates its
  16.     Volumename.
  17.  
  18.     If VOLUME is selected, we call GetNameFromLock
  19.     and evaluate the Volumename from that string
  20.  
  21.     If DEVICE is selected, we try to get the
  22.     Devicename instead of the Volumename.
  23.  
  24.     DEVICE hides VOLUME.
  25.  
  26.     The resulting string is sent to STDOUT.
  27.  
  28.      RESULT
  29.     the volumename of the file, or empty string
  30.     if information can not be found
  31.     
  32.  
  33.     
  34.         
  35.  
  36.     NOTES
  37.     * CLI - only
  38.  
  39.     * should compile with SAS-C
  40.     
  41.  
  42.     BUGS
  43.  
  44.     We use 'Lock' to check the file, so an exclusively
  45.     locked or non existant file is not recognized, if
  46.     one of the flags is given.
  47.     
  48.  
  49.     EXAMPLES
  50.  
  51.     (we are assuming You use a unmodified Workbench)
  52.  
  53.     >VolName ENV:Sys
  54.     ENV:
  55.  
  56.     >VolName ENV:Sys VOLUME
  57.     Ram Disk:
  58.  
  59.     >VolName ENV:Sys DEVICE
  60.     RAM:
  61.     
  62.  
  63.     HISTORY
  64.  
  65.     08-02-95 b_noll created
  66.     11-02-95 b_noll enabled 'DEVICE/S', changed 'PHYSICAL' to 'VOLUME'
  67.     20-02-95 b_noll restructured source
  68.     21-02-95 b_noll added version/format-prefix/offset
  69.     20-03-95 b_noll added args diagnostics
  70.     19-08-95 b_noll created .data file
  71.     
  72.  
  73.     AUTHOR
  74.     Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
  75.     noll@student.uni-kl.de
  76.  
  77.